package li.tmi.TxBtry;

public class TxBtryTime {
	private int RTimeHours;
	private int RTimeMinutes;
	
	public TxBtryTime(long _time) {
		long tmp = _time/1000; //millis to seconds
		tmp = tmp/60; // seconds to minutes
		RTimeHours = (int)(tmp/60); // minutes to hours
		System.out.println(tmp+" : "+_time+ " "+(tmp/60)+"hours");
		RTimeMinutes = (int)tmp - RTimeHours*60; // time in minutes - time in hours*60 => rest time in minutes
	}
	
	public int getHours() {
		return RTimeHours;
	}
	public int getMinutes() {
		return RTimeMinutes;
	}
	
	
}
